package interface3;

public class Test
{
    public static void main(String[] args) {
        //完成接口小案例
        Student AllStudent [] = new Student[7];
        AllStudent[0] = new Student("小王","男",80);
        AllStudent[1] = new Student("小红","女",91);
        AllStudent[2] = new Student("小张","男",92);
        AllStudent[3] = new Student("小李","女",95);
        AllStudent[4] = new Student("小白","男",94);
        AllStudent[5] = new Student("小顾","女",95);
        AllStudent[6] = new Student("小贺","女",96);

        //定义接口
        ClassDataInter cdi = new ClassDataInter1(AllStudent);
        cdi.printAllstudentinfors();
        cdi.printAverageScore();


    }
}
